/*
 * EnterpriseCustomerKeeper。java
 *
 * Created Date: 2015年3月16日
 *				
 * Copyright (c)  Centling Technologies Co., Ltd.
 *
 * This software is the confidential and proprietary information of
 *  Centling Technologies Co., Ltd. ("Confidential Information"). You shall not
 * disclose such Confidential Information and shall use it only in accordance
 * with the terms of the license agreement you entered into with
 * Centling Technologies Co., Ltd.
 */

package com.centling.bluecollar.customer.entity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


/**
 * @author hellsing
 * @version  <br>
 * <p>类的描述</p>
 */
@Table(name="t_enterpriseCustomerKeeper")
@Entity
public class EnterpriseCustomerKeeper {
	
	private int id;
	private String name;
	private String date;
	private String status;
	private EnterpriseCustomer enterpriseCustomer;
	
	public String getName() {
	
		return name;
	}

	
	public void setName(String name) {
	
		this.name = name;
	}

	public String getStatus() {
	
		return status;
	}


	
	public void setStatus(String status) {
	
		this.status = status;
	}


	public String getDate() {
	
		return date;
	}

	
	public void setDate(String date) {
	
		this.date = date;
	}

	
	public void setId(int id) {
	
		this.id = id;
	}

	@ManyToOne(fetch=FetchType.EAGER,cascade=CascadeType.ALL)
	@JoinColumn(name="enterpriseCustomerId")
	public EnterpriseCustomer getEnterpriseCustomer() {
	
		return enterpriseCustomer;
	}
	
	public void setEnterpriseCustomer(EnterpriseCustomer enterpriseCustomer) {
	
		this.enterpriseCustomer = enterpriseCustomer;
	}

	@Id
	@GeneratedValue
	public int getId() {
	
		return id;
	}
}
